﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 配置工具界面美化 {
    public interface IFileStorageService {
        byte[] Get(PathPart pathPart);

        byte[] GetFirst(ref PathPart pathPart);

        void Save(byte[] file, ref PathPart pathPart);

        void Backup(ref PathPart pathPart);

        void Backup(byte[] file, ref PathPart pathPart);

        void SetError(ref PathPart pathPart);

        void ClearDirectory();
    }

    public class PathPart {
        public string FromSystem {
            get;
            set;
        }

        public string ToSystem {
            get;
            set;
        }

        public string BusinessCode {
            get;
            set;
        }

        public string InterfaceCode {
            get;
            set;
        }

        public string DateString {
            get;
            set;
        }

        public string SyncNo {
            get;
            set;
        }

        public string FileName {
            get;
            set;
        }

        public string FilePath {
            get;
            set;
        }
    }
}
